/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.crossriver.crgis.database.service;

import com.liferay.portal.kernel.util.ClassLoaderProxy;
import com.liferay.portal.kernel.util.MethodHandler;
import com.liferay.portal.kernel.util.MethodKey;

/**
 * @author Wole Adetiba
 */
public class Application_C_of_OLocalServiceClp
	implements Application_C_of_OLocalService {
	public Application_C_of_OLocalServiceClp(ClassLoaderProxy classLoaderProxy) {
		_classLoaderProxy = classLoaderProxy;

		_addApplication_C_of_OMethodKey0 = new MethodKey(_classLoaderProxy.getClassName(),
				"addApplication_C_of_O",
				com.crossriver.crgis.database.model.Application_C_of_O.class);

		_createApplication_C_of_OMethodKey1 = new MethodKey(_classLoaderProxy.getClassName(),
				"createApplication_C_of_O", java.lang.String.class);

		_deleteApplication_C_of_OMethodKey2 = new MethodKey(_classLoaderProxy.getClassName(),
				"deleteApplication_C_of_O", java.lang.String.class);

		_deleteApplication_C_of_OMethodKey3 = new MethodKey(_classLoaderProxy.getClassName(),
				"deleteApplication_C_of_O",
				com.crossriver.crgis.database.model.Application_C_of_O.class);

		_dynamicQueryMethodKey4 = new MethodKey(_classLoaderProxy.getClassName(),
				"dynamicQuery",
				com.liferay.portal.kernel.dao.orm.DynamicQuery.class);

		_dynamicQueryMethodKey5 = new MethodKey(_classLoaderProxy.getClassName(),
				"dynamicQuery",
				com.liferay.portal.kernel.dao.orm.DynamicQuery.class,
				int.class, int.class);

		_dynamicQueryMethodKey6 = new MethodKey(_classLoaderProxy.getClassName(),
				"dynamicQuery",
				com.liferay.portal.kernel.dao.orm.DynamicQuery.class,
				int.class, int.class,
				com.liferay.portal.kernel.util.OrderByComparator.class);

		_dynamicQueryCountMethodKey7 = new MethodKey(_classLoaderProxy.getClassName(),
				"dynamicQueryCount",
				com.liferay.portal.kernel.dao.orm.DynamicQuery.class);

		_getApplication_C_of_OMethodKey8 = new MethodKey(_classLoaderProxy.getClassName(),
				"getApplication_C_of_O", java.lang.String.class);

		_getApplication_C_of_OsMethodKey9 = new MethodKey(_classLoaderProxy.getClassName(),
				"getApplication_C_of_Os", int.class, int.class);

		_getApplication_C_of_OsCountMethodKey10 = new MethodKey(_classLoaderProxy.getClassName(),
				"getApplication_C_of_OsCount");

		_updateApplication_C_of_OMethodKey11 = new MethodKey(_classLoaderProxy.getClassName(),
				"updateApplication_C_of_O",
				com.crossriver.crgis.database.model.Application_C_of_O.class);

		_updateApplication_C_of_OMethodKey12 = new MethodKey(_classLoaderProxy.getClassName(),
				"updateApplication_C_of_O",
				com.crossriver.crgis.database.model.Application_C_of_O.class,
				boolean.class);

		_getApplication_C_of_OByUserIdMethodKey13 = new MethodKey(_classLoaderProxy.getClassName(),
				"getApplication_C_of_OByUserId", java.lang.String.class);

		_getApplication_C_of_OByStatusMethodKey14 = new MethodKey(_classLoaderProxy.getClassName(),
				"getApplication_C_of_OByStatus",
				com.liferay.portal.kernel.dao.orm.DynamicQuery.class);

		_getApplication_C_of_OAllMethodKey15 = new MethodKey(_classLoaderProxy.getClassName(),
				"getApplication_C_of_OAll", java.lang.String.class);

		_updateApplication_C_of_OMethodKey16 = new MethodKey(_classLoaderProxy.getClassName(),
				"updateApplication_C_of_O", java.lang.String.class,
				java.lang.String.class);
	}

	public com.crossriver.crgis.database.model.Application_C_of_O addApplication_C_of_O(
		com.crossriver.crgis.database.model.Application_C_of_O application_C_of_O)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_addApplication_C_of_OMethodKey0,
				application_C_of_O);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (com.crossriver.crgis.database.model.Application_C_of_O)ClpSerializer.translateOutput(returnObj);
	}

	public com.crossriver.crgis.database.model.Application_C_of_O createApplication_C_of_O(
		java.lang.String applicationId) {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_createApplication_C_of_OMethodKey1,
				applicationId);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (com.crossriver.crgis.database.model.Application_C_of_O)ClpSerializer.translateOutput(returnObj);
	}

	public void deleteApplication_C_of_O(java.lang.String applicationId)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		MethodHandler methodHandler = new MethodHandler(_deleteApplication_C_of_OMethodKey2,
				applicationId);

		try {
			_classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
				throw (com.liferay.portal.kernel.exception.PortalException)t;
			}

			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}
	}

	public void deleteApplication_C_of_O(
		com.crossriver.crgis.database.model.Application_C_of_O application_C_of_O)
		throws com.liferay.portal.kernel.exception.SystemException {
		MethodHandler methodHandler = new MethodHandler(_deleteApplication_C_of_OMethodKey3,
				application_C_of_O);

		try {
			_classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}
	}

	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_dynamicQueryMethodKey4,
				dynamicQuery);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List)ClpSerializer.translateOutput(returnObj);
	}

	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_dynamicQueryMethodKey5,
				dynamicQuery, start, end);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List)ClpSerializer.translateOutput(returnObj);
	}

	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_dynamicQueryMethodKey6,
				dynamicQuery, start, end, orderByComparator);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List)ClpSerializer.translateOutput(returnObj);
	}

	public long dynamicQueryCount(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_dynamicQueryCountMethodKey7,
				dynamicQuery);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return ((Long)returnObj).longValue();
	}

	public com.crossriver.crgis.database.model.Application_C_of_O getApplication_C_of_O(
		java.lang.String applicationId)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_getApplication_C_of_OMethodKey8,
				applicationId);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
				throw (com.liferay.portal.kernel.exception.PortalException)t;
			}

			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (com.crossriver.crgis.database.model.Application_C_of_O)ClpSerializer.translateOutput(returnObj);
	}

	public java.util.List<com.crossriver.crgis.database.model.Application_C_of_O> getApplication_C_of_Os(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_getApplication_C_of_OsMethodKey9,
				start, end);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List<com.crossriver.crgis.database.model.Application_C_of_O>)ClpSerializer.translateOutput(returnObj);
	}

	public int getApplication_C_of_OsCount()
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_getApplication_C_of_OsCountMethodKey10);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return ((Integer)returnObj).intValue();
	}

	public com.crossriver.crgis.database.model.Application_C_of_O updateApplication_C_of_O(
		com.crossriver.crgis.database.model.Application_C_of_O application_C_of_O)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_updateApplication_C_of_OMethodKey11,
				application_C_of_O);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (com.crossriver.crgis.database.model.Application_C_of_O)ClpSerializer.translateOutput(returnObj);
	}

	public com.crossriver.crgis.database.model.Application_C_of_O updateApplication_C_of_O(
		com.crossriver.crgis.database.model.Application_C_of_O application_C_of_O,
		boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_updateApplication_C_of_OMethodKey12,
				application_C_of_O, merge);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (com.crossriver.crgis.database.model.Application_C_of_O)ClpSerializer.translateOutput(returnObj);
	}

	public java.util.List<com.crossriver.crgis.database.model.Application_C_of_O> getApplication_C_of_OByUserId(
		java.lang.String userId)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_getApplication_C_of_OByUserIdMethodKey13,
				userId);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List<com.crossriver.crgis.database.model.Application_C_of_O>)ClpSerializer.translateOutput(returnObj);
	}

	public java.util.List<com.crossriver.crgis.database.model.Application_C_of_O> getApplication_C_of_OByStatus(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_getApplication_C_of_OByStatusMethodKey14,
				dynamicQuery);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List<com.crossriver.crgis.database.model.Application_C_of_O>)ClpSerializer.translateOutput(returnObj);
	}

	public java.util.List<com.crossriver.crgis.database.model.Application_C_of_O> getApplication_C_of_OAll(
		java.lang.String userId)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_getApplication_C_of_OAllMethodKey15,
				userId);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List<com.crossriver.crgis.database.model.Application_C_of_O>)ClpSerializer.translateOutput(returnObj);
	}

	public com.crossriver.crgis.database.model.Application_C_of_O updateApplication_C_of_O(
		java.lang.String appId, java.lang.String status)
		throws java.lang.Exception {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_updateApplication_C_of_OMethodKey16,
				appId, status);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof java.lang.Exception) {
				throw (java.lang.Exception)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (com.crossriver.crgis.database.model.Application_C_of_O)ClpSerializer.translateOutput(returnObj);
	}

	public ClassLoaderProxy getClassLoaderProxy() {
		return _classLoaderProxy;
	}

	private ClassLoaderProxy _classLoaderProxy;
	private MethodKey _addApplication_C_of_OMethodKey0;
	private MethodKey _createApplication_C_of_OMethodKey1;
	private MethodKey _deleteApplication_C_of_OMethodKey2;
	private MethodKey _deleteApplication_C_of_OMethodKey3;
	private MethodKey _dynamicQueryMethodKey4;
	private MethodKey _dynamicQueryMethodKey5;
	private MethodKey _dynamicQueryMethodKey6;
	private MethodKey _dynamicQueryCountMethodKey7;
	private MethodKey _getApplication_C_of_OMethodKey8;
	private MethodKey _getApplication_C_of_OsMethodKey9;
	private MethodKey _getApplication_C_of_OsCountMethodKey10;
	private MethodKey _updateApplication_C_of_OMethodKey11;
	private MethodKey _updateApplication_C_of_OMethodKey12;
	private MethodKey _getApplication_C_of_OByUserIdMethodKey13;
	private MethodKey _getApplication_C_of_OByStatusMethodKey14;
	private MethodKey _getApplication_C_of_OAllMethodKey15;
	private MethodKey _updateApplication_C_of_OMethodKey16;
}